package org.fuys.coder.infrastructure.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.fuys.coder.infrastructure.model.po.User;
import org.fuys.coder.infrastructure.model.po.UserFollower;

import java.util.List;

/**
 * @projectName: fuys-low-coder
 * @package: org.fuys.coder.infrastructure.dao
 * @className: UserFollowerMapper
 * @author: WangJing
 * @description: 用户关注mapper
 * @date: 2024/7/25 23:35
 * @version: 1.0
 */
@Mapper
public interface UserFollowerMapper extends BaseMapper<UserFollower> {

    List<User> selectUserNoticedVos(@Param("userId") Integer userId,
                                    @Param("startIdx") Integer startPage,
                                    @Param("pageSize")Integer pageSize);

    List<User> selectUserFollowerVos(@Param("userId") Integer userId,
                                     @Param("type") Integer type,
                                     @Param("startIdx") Integer curPage,
                                     @Param("pageSize") Integer pageNum);
}
